import {BrowserModule} from '@angular/platform-browser';
import {ErrorHandler, NgModule} from '@angular/core';
import {IonicApp, IonicErrorHandler, IonicModule} from 'ionic-angular';
import {SplashScreen} from '@ionic-native/splash-screen';
import {StatusBar} from '@ionic-native/status-bar';

import {MyApp} from './app.component';
import {TabsPage} from "../pages/tabs/tabs";
import {BookPage} from "../pages/book/book";
import {ImportantThingsPage} from "../pages/important-things/important-things";
import {AnniversaryPage} from "../pages/anniversary/anniversary";
import {FamilyTreePage} from "../pages/family-tree/family-tree";
import {ComponentsModule} from "../components/components.module";

@NgModule({
  declarations: [
    MyApp,
    TabsPage,
    BookPage,
    ImportantThingsPage,
    AnniversaryPage,
    FamilyTreePage,
  ],
  imports: [
    BrowserModule,
    ComponentsModule,
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    TabsPage,
    BookPage,
    ImportantThingsPage,
    AnniversaryPage,
    FamilyTreePage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler}
  ]
})
export class AppModule {
}
